<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>AttachEntityObject</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">AttachEntityObject()</font></b></p>
<p><b>语法</b></p><blockquote>
<font color="#3A3966"><b>AttachEntityObject</b></font>(#Entity, Bone$, ObjectID [, x, y, z, Pitch, Roll, Yaw])</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Attach an existing object to an entity bone. An object can be detached from an entity with <a href="detachentityobject.html">DetachEntityObject()</a>. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Entity</i></td>
<td width="90%"> 
使用该实体。 

</td></tr>
<tr><td><i>Bone$</i></td>
<td> 
 
The bone name in the OGRE mesh. If the bone name is empty, then the object is not attached to a bone 
but directly to the entity. 

 

</td></tr>
<tr><td><i>ObjectID</i></td>
<td> 
 
The object to attach. It can be one of the following types: 
 
<pre><font face="Courier New, Courier, mono"size="2">  - Entity : use <a href="entityid.html">EntityID()</a> as 'ObjectID'.
  - Camera : use <a href="../camera/cameraid.html">CameraID()</a> as 'ObjectID'.
  - Light  : use <a href="../light/lightid.html">LightID()</a> as 'ObjectID'.
  - BillboardGroup : use <a href="../billboard/billboardgroupid.html">BillboardGroupID()</a> as 'ObjectID'.
  - ParticleEmitter: use <a href="../particle/particleemitterid.html">ParticleEmitterID()</a> as 'ObjectID'.
</font></pre>

</td></tr>
<tr><td><i>x, y, z (optional)</i></td>
<td> 
 
The relative offset position of the attached object. 

 

</td></tr>
<tr><td><i>Pitch (optional)</i></td>
<td> 
 
The pitch to apply to the attached object. 

 

</td></tr>
<tr><td><i>Roll (optional)</i></td>
<td> 
 
The roll to apply to the attached object. 

 

</td></tr>
<tr><td><i>Yaw (optional)</i></td>
<td> 
 
The yaw to apply to the attached object. 

 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>
无.


</blockquote><p><b>参阅</b></p><blockquote>

<a href="detachentityobject.html">DetachEntityObject()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=applyentityimpulse.html>ApplyEntityImpulse()</a> - <a href="index.html">Entity Index</a> - <a href="copyentity.html">CopyEntity()</a> -&gt;<br><br>

</body></html>